//
//  THHomeDataController.h
//  TreeHole
//
//  Created by apple on 2020/7/29.
//  Copyright © 2020 stoneobs. All rights reserved.
//

#import "STTools_DataController.h"
#import "THHomeModel.h"
#import "THGoodDetailModel.h"
#import "THCommentModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface THHomeDataController : STTools_DataController
//首页
+ (void)stoneobs_fun_get_home_model:(void(^)(THHomeModel * model))handle;
//获取banner
+ (void)stoneobs_fun_get_banner_request_cid:(NSString*)cid
                                        num:(NSInteger)num
                                     handle:(void(^)(NSArray * banner))handle;
//首页分类
+ (void)stoneobs_fun_get_home_cates:(void(^)(NSArray * cates))handle;

#pragma mark --商品详情
//商品详情
+ (void)stoneobs_fun_get_good_detail:(NSString*)good_id handle:(void(^)(THGoodDetailModel * model))handle;

//获取商品评论
+ (void)stoneobs_fun_get_good_comment_request_cid:(NSString*)cid
                                            page:(NSInteger)page
                                            handle:(void(^)(NSArray<THCommentModel*> * array))handle;
//收藏或者取消收藏
+ (void)stoneobs_fun_collect_good:(NSString*)good_id handle:(STTools_DataController_stoneobs_handle)handle;

//添加购物车
+ (void)stoneobs_fun_add_car:(NSString*)good_id
                         num:(NSString*)num
                        type_name:(NSString*)type_name
                        spec_id:(NSString*)spec_id
                        handle:(STTools_DataController_stoneobs_handle)handle;
@end

NS_ASSUME_NONNULL_END
